<div class="canonCampaign">
    <!-- banner -->
    <div class="bannerCanonCampaign">
        <img width="960" height="300" class="imgBnnHome1" alt="img" src="<?=baseinfo?>/img/banner-2048x640.png">
    </div>
          <img  class="imgBnnHome1" alt="img" src="<?=baseinfo?>/img/cpn-horizontal.png"> 

    
    
    <div class="wrprAddCtnt">
        <div class="wrpAddCtnt clBg4 clBd2 bdFull">
            <div class="wrpStaticAddCtnt">

                <!-- register + serial -->
                <?if($data['user']['roleid']!='2'&&$data['user']['roleid']!='3'&&$data['user']['roleid']!='4'){?>
                <div class="wrapRegisterCanonCampaign fs04 clTxt2">
                    <form id="postsignup" method="post">
                        <!-- register -->
                        
                        <?if(!$data['user']['userid']){?>
                        <div class="registerCanonCampaign">
                            <h3 class="fs09">Register / สมัครสมาชิก</h3>
                            <div class="formRegisterCanonCampaign clearfix">
                                <label>ชื่อ</label>
                                <input type="text" name="fistnameuser" class="inpAddCtnt w630 clBg5 clBd2 fs03 clTxt2">
                            </div>
                            <div class="formRegisterCanonCampaign clearfix">
                                <label>นามสกุล</label>
                                <input type="text" name="lastnameuser" class="inpAddCtnt w630 clBg5 clBd2 fs03 clTxt2">
                            </div>
                            <div class="formRegisterCanonCampaign clearfix">
                                <label>อีเมล์</label>
                                <input type="text" name="emailnameuser" class="inpAddCtnt w630 clBg5 clBd2 fs03 clTxt2">
                            </div>
                        </div>
                        <?}?>
                        
                        
                      
                        <!-- serial -->
                        <div class="serialCanonCampaign">
                            <h3 class="fs09">Serial Number / หมายเลขสินค้า</h3>
                            <div class="formRegisterCanonCampaign clearfix">
                                <label>Serial Number</label>
                                <input type="text" name="serialuser" class="inpAddCtnt w630 clBg5 clBd2 fs03 clTxt2">
                            </div>
                        </div>
                      
                            
                        <div class="btnRegisterCanonCampaign clearfix">
                            <input type="submit" style="width: 90px;" value="ลงทะเบียน" class="btnGen clTxtW cutTxt clBgSp2 fs04">
                        </div>
                    </form>
                </div>
                
                <?}?>

                <!-- upload image -->
                <?if($data['user']['roleid']=='2'||$data['user']['roleid']=='3'||$data['user']['roleid']=='4'){?>
                <form id="uploadimagedata">
                <div class="uploadImageCanonCampaign">
                    
                        <h3 class="fs09">ชื่อภาพประกวด</h3>
                        
                        
                        <!-- กรณีอัพโหลดครบ 3 ครั้งแล้ว -->
                        <h4 class="fs04"><?if($data['check']){?>คุณไม่สามารถอัพโหลดได้แล้ว<?}?></h4>
                        
                        <?if(!$data['check']){?>
                        <div id="addform" class="wrpDynamicAddCtnt clearfix">
                            <!-- title -->
                            <div class="ttlAddCtnt fs04 clTxt2">
                                <label>ชื่อภาพ</label><br>
                                <input type="text" name="title" class="inpAddCtnt w630 clBg5 clBd2 fs03 clTxt2">
                            </div>
                            <!-- image -->
                            <!--<div class="itPlg addImgPlg">
                                <div class="wrpPlg clBg5 clBd2 bdFull">
                                    <div class="plgArea"></div>
                                    <div class="wrpOutAtcPlg">
                                        <div class="wrpAtcPlg">
                                            <span class="ico icoImgPlg"></span>
                                            <div class="spnAtcPlg clTxtW">
                                                <span class="fs03">Image</span><br>
                                                <span class="rcmSizeAdd fs01">recommended size width: 640px</span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="wrpTl">
                                        <div class="addTool">
                                            <div title="Browse" class="btnIco addImgTl clBd3 bdBtm">
                                                <span class="ico icoAddImgTl"></span>
                                                <div class="wrpUlFile">
                                                    <input type="file" class="ulFile">
                                                </div>
                                            </div>
                                            <div title="Cloud" class="btnIco addCldTl clBd3 bdBtm">
                                                <span class="ico icoAddCldTl"></span>
                                            </div>
                                            <div title="Link" class="btnIco addLnkTl clBd3 bdBtm">
                                                <span class="ico icoAddLnkTl"></span>
                                            </div>
                                            <div title="Remove" class="btnIco btnRmvTl">
                                                <span class="ico icoRmvTl"></span>
                                            </div>
                                        </div>
                                    </div>
                                    <span class="desPlg clTxt3 fs03">Select an image recommend size 640 x 360 px</span>
                                    <div class="frmTprPlg">
                                        <input type="text" placeholder="Type text here to explain this image." class="inpAddCtntNoBd inpTprPlg w616 clTxt2 fs03">
                                    </div>
                                </div>
                            </div>-->
                            <!-- text -->
                            <!--<div class="itPlg addTxtPlg">
                                <div class="wrpPlg clBg5 clBd2 bdFull">
                                    <div class="wrpOutAtcPlg">
                                        <div class="wrpAtcPlg">
                                            <span class="ico icoOri icoTxtPlg"></span>
                                            <div class="spnAtcPlg clTxtW">
                                                <span class="txtAtcPlg fs03">Text</span>
                                            </div>
                                        </div>
                                    </div>
                                    
                                        <textarea placeholder="Click here to put some text and explain everything !!" class="inpAddCtntNoBd w616 frmTxtPlg clBg5 fs03 clTxt2"></textarea>
                                    
                                </div>
                            </div>-->
                        </div>
                        <div class="contestUploadImageCanonCampaign">
                            <label class="fs04 clTxt2">ประเภทการประกวด</label>

                            <input type="radio" checked=""  value="contestg" name="contest">
                            <label class="fs03 clTxt3" for="contestg">บุคคลทั่วไป</label>
                            <input type="radio"   value="contests" name="contest">
                            <label class="fs03 clTxt3" for="contests">นักศึกษา</label>
                        </div>
                        <div class="btnUploadImageCanonCampaign clearfix">
                            <input type="button"  id="btnsubmit" value="ยืนยัน" class="btnGen clTxtW cutTxt clBgSp2 fs04">
                        </div>
                        <?}?>
                    
                </div>
                </form>
                <?}?>

            </div>
        </div>
    </div>
</div>